package com.naiterui.ehp.bs.emr.vo.scale;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 量表属性VO
 *
 * @author yingsu
 * @date 2018/11/15 14:58
 * @since 1.0.0
 */
@ApiModel(value = "ScaleFieldVO", description = "\"量表字段对象\"")
public class ScaleFieldVO implements Serializable {
    private static final long serialVersionUID = 5269738726444333598L;

    @ApiModelProperty(value = "字段名称")
    @JsonInclude(Include.NON_NULL)
    private String name;

    @ApiModelProperty(value = "字段值")
    @JsonInclude(Include.NON_NULL)
    private String value;

    public ScaleFieldVO(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
